
                    <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
                        <path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path>
                    </svg>
                    <h5><a id="1ABCDUI_0"></a>1、依次点击A、B、C、D四个按钮，其中不会触发UI刷新的是：</h5> 
<p>答案：</p> 
<pre data-index="0" class="set-code-show prettyprint"><code class="prism language-javascript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;">		<span class="token function">Button</span><span class="token punctuation">(</span><span class="token string">"C"</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">onClick</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
          <span class="token keyword">this</span><span class="token punctuation">.</span>nameList<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>name <span class="token operator">=</span> <span class="token string">"Jim"</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.341104;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:0,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>分析：直接更新非一级数据不会触发UI刷新</p> 
<h5><a id="2RowjustifyContent_9"></a>2、如果要实现Row组件内的子元素均匀排列，且第一个元素与行首对齐，最后一个元素与行尾对齐，需要使用justifyContent的哪个枚举值。</h5> 
<blockquote> 
 <p>答案： <code>SpaceBetween</code><br> 分析：<br> <img src="https://i-blog.csdnimg.cn/direct/310c9616e800472886e70e6242af40fd.png" alt="在这里插入图片描述" width="500"></p> 
</blockquote> 
<h5><a id="3_hap_modulejson5_abilities_1_UIAbility_Web__1_FormExtensionAbility_1WorkSchedulerExtensionAbility_14"></a>3、开发者开发了一个应用，该应用只有一个 hap包，其 module.json5中 abilities的配置如下所示，包含 1个 UIAbility(无 Web组件 )、 1个 FormExtensionAbility组件、 1个WorkSchedulerExtensionAbility组件，那么该应用在运行过程中，最多会存在几个应用进程。</h5> 
<blockquote> 
 <p>答案：<code>3个</code><br> 分析：同一应用内的所有同类型的ExtensionAbility运行在同一独立进程（除ServiceExtensionAbility、DataShareExtensionAbility外），跟UIAbility组件不在同一进程。<br> 例如：一个应用有1个UIAbility组件、1个ServiceExtensionAbility、1个DataShareExtensionAbility、2个FormExtensionAbility、1个ImeExtensionAbility。则该应用在运行时，有三个进程：<br> UIAbility、ServiceExtensionAbility、DataShareExtensionAbility运行在同一个进程。<br> FormExtensionAbility运行在一个独立进程。<br> ImeExtensionAbility运行在一个独立进程。</p> 
</blockquote> 
<h5><a id="4isShowisShow_24"></a>4、为了使isShow参数值与半模态界面的状态同步，可以使用下列那种方式双向绑定isShow参数?</h5> 
<blockquote> 
 <p>答案：<code>$$this.isShow</code><br> 分析：</p> 
</blockquote> 
<pre data-index="1" class="set-code-hide prettyprint"><code class="prism language-javascript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;">  <span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token function">Column</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
      <span class="token function">Button</span><span class="token punctuation">(</span><span class="token string">"transition modal 1"</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">onClick</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
          <span class="token keyword">this</span><span class="token punctuation">.</span>isShow <span class="token operator">=</span> <span class="token boolean">true</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">fontSize</span><span class="token punctuation">(</span><span class="token number">20</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">margin</span><span class="token punctuation">(</span><span class="token number">10</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">bindSheet</span><span class="token punctuation">(</span>$$<span class="token keyword">this</span><span class="token punctuation">.</span>isShow<span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">myBuilder</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token punctuation">{<!-- --></span>
          <span class="token literal-property property">height</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>sheetHeight<span class="token punctuation">,</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>
    <span class="token punctuation">.</span><span class="token function">justifyContent</span><span class="token punctuation">(</span>FlexAlign<span class="token punctuation">.</span>Center<span class="token punctuation">)</span>
    <span class="token punctuation">.</span><span class="token function">width</span><span class="token punctuation">(</span><span class="token string">'100%'</span><span class="token punctuation">)</span>
    <span class="token punctuation">.</span><span class="token function">height</span><span class="token punctuation">(</span><span class="token string">'100%'</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><div class="hide-preCode-box"><span class="hide-preCode-bt" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7365&quot;}"><img class="look-more-preCode contentImg-no-view" src="https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png" alt="" title=""></span></div><ul class="pre-numbering" style="opacity: 0.341104;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:1,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<h5><a id="5_Grid_47"></a>5、以下哪份代码可以实现下图 Grid布局。</h5> 
<p><img src="https://i-blog.csdnimg.cn/direct/eaa6b5cc83d741959f91a75dcd57d6ad.jpeg" alt="在这里插入图片描述" width="200"></p> 
<blockquote> 
 <p>答案：<code>通过GridLayoutOptions</code><br> 分析：由不同大小的网格组成不<a href="https://so.csdn.net/so/search?q=%E5%9D%87%E5%8C%80%E5%88%86%E5%B8%83&amp;spm=1001.2101.3001.7020" target="_blank" class="hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;dest&quot;:&quot;https://so.csdn.net/so/search?q=%E5%9D%87%E5%8C%80%E5%88%86%E5%B8%83&amp;spm=1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;均匀分布\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;dest&quot;:&quot;https://so.csdn.net/so/search?q=%E5%9D%87%E5%8C%80%E5%88%86%E5%B8%83&amp;spm=1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;均匀分布\&quot;}&quot;}" data-tit="均匀分布" data-pretit="均匀分布">均匀分布</a>的网格布局场景在实际应用中十分常见，如上图所示。在Grid组件中，可以通过创建Grid时传入合适的 GridLayoutOptions 实现如图所示的单个网格横跨多行或多列的场景。</p> 
</blockquote> 
<h5><a id="6HarmonyOSDevEco_StudioModule_52"></a>6、在开发HarmonyOS应用工程时，随着业务的发展，现在需要创建一个模块，关于在DevEco Studio中创建Module，下列选项哪种方式是错误的？</h5> 
<blockquote> 
 <p>答案：<code>在hvigor目录下，单击鼠标右键，选择New &gt; Module... 创建新的Module，此时module将创建在该文件目录下。</code><br> 分析：hvigor ：存放前端构建配置信息</p> 
</blockquote> 
<h5><a id="7CDevEco_StudioCC_56"></a>7、开发者小李遇到了一个复杂的问题，该问题仅在特定的代码执行路径上出现，且难以复现。他使用的是C++进行核心算法开发，代码的逻辑密集且对性能要求极高，DevEco Studio为C/C++开发者提供的高级调试能力，以下哪个能力可以帮助小李查看代码历史执行路径，回溯到关键的变量状态。</h5> 
<blockquote> 
 <p>答案：<code>反向调试能力：允许开发者在调试过程中回退回到之前的代码行或断点,不仅查看过去的堆栈信息，还能重现历史的全局、静态和局部变量状态，帮助深入理解代码历史行为，特别是对于复杂逻辑和难以复现的bug定位至关重要</code><br> 分析：</p> 
</blockquote> 
<h5><a id="8_DevEco_Studio_Harmony0S_60"></a>8、开发者小张正在使用 DevEco Studio开发一款 Harmony0S应用，他遇到了一个仅在应用实际运行环境中出现的问题，需要调试已部署在设备上的应用以定位问题根源，为了能够在应用已经运行的情况下介入调试，小张应该采用哪种调试方法？</h5> 
<blockquote> 
 <p>答案：<code>Attach Debugger to Process，这允许他连接到正在运行的应用进程进行调试。</code><br> 分析：</p> 
</blockquote> 
<h5><a id="9Harmonyos_DevEco_ProfilerDevEco_Profiler__64"></a>9、Harmonyos应用开发团队正着手优化一款面向全球市场的在线教育应用，该应用在特定课程直播环节出现了性能波动和响应延迟的问题，严重影响用户体验。打算利用 DevEco Profiler来进行<span class="edu-hl hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;性能优化\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;性能优化\&quot;}&quot;}" data-tit="性能优化" data-pretit="性能优化">性能优化</span>。DevEco Profiler其设计核心和主要优势是什么 。</h5> 
<blockquote> 
 <p>答案：<code>DevEco Profier依据 Top-Down设计理念，通过高度整合的数据展示范式，提供从宏观到微观的性能数据分析，加速开发者定位和解决问题的过程</code><br> 分析：</p> 
</blockquote> 
<h5><a id="10WebSocket_68"></a>10、WebSocket连接开发步骤描述错误的是。</h5> 
<blockquote> 
 <p>答案：<code>调用 Session.start方法开启 metadata数据输出</code><br> 分析：</p> 
</blockquote> 
<h5><a id="11_API_72"></a>11、某业务团队的架构师发现某个特性用的频率比较少，但是这个特性占用空间资源还是比较大的。为了减少首包下载体积，准备将该特性解耦出来，并对外提供 API方便主模块调用。以下说法正确的是。</h5> 
<blockquote> 
 <p>答案：<code>将该特性做成按需加载的 hsp包，暴露接口给主模块使用。</code><br> 分析：</p> 
</blockquote> 
<h5><a id="12_HAPHarmony_Ability_Package_77"></a>12、以下关于 HAP(Harmony Ability Package)说法正确的是。</h5> 
<blockquote> 
 <p>答案：<code>应用工程如果包含多个 Module，在应用上架时，会将多个.hap文件打包成一个.app文件。</code><br> 分析：</p> 
</blockquote> 
<h5><a id="13_81"></a>13、我们需要避免在逐帧调用的接口中执行耗时操作，下面哪个选项不属于上述的接口？</h5> 
<blockquote> 
 <p>答案：<code>aboutToReuse</code><br> 分析：组件复用时避免在aboutToReuse中执行耗时操作。 例如，在滑动场景中，使用组件复用通常需要用生命周期回调aboutToReuse去更新组件的状态变量。在滑动时，aboutToReuse会被频繁调用。如果在aboutToReuse中进行了耗时操作，将导致应用出现卡顿丢帧的问题。</p> 
</blockquote> 
<h5><a id="14_UIAbilityA_specified_AbilityStage_85"></a>14、某个应用开发了一个 UIAbilityA，其启动模式是 specified，并且对应的 AbilityStage的实现如下：</h5> 
<pre data-index="2" class="set-code-show prettyprint"><code class="prism language-javascript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token keyword">import</span> AbilityStage from ‘@ohos<span class="token punctuation">.</span>app<span class="token punctuation">.</span>ability<span class="token punctuation">.</span>AbilityStage’<span class="token punctuation">;</span>
<span class="token keyword">import</span> type Want from ‘@ohos<span class="token punctuation">.</span>app<span class="token punctuation">.</span>ability<span class="token punctuation">.</span>Want’<span class="token punctuation">;</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token keyword">class</span> <span class="token class-name">MyAbilityStage</span> <span class="token keyword">extends</span> <span class="token class-name">AbilityStage</span> <span class="token punctuation">{<!-- --></span>
	<span class="token keyword">this</span><span class="token punctuation">.</span>instanceIndex <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
	<span class="token function">onAcceptWant</span><span class="token punctuation">(</span>want<span class="token operator">:</span> Want<span class="token punctuation">)</span><span class="token operator">:</span>string <span class="token punctuation">{<!-- --></span>
		<span class="token keyword">if</span><span class="token punctuation">(</span>want<span class="token punctuation">.</span>abilityName <span class="token operator">===</span> ‘UIAbilityA’<span class="token punctuation">)</span><span class="token punctuation">{<!-- --></span>
			<span class="token keyword">if</span><span class="token punctuation">(</span>want<span class="token punctuation">.</span>parameters <span class="token operator">&amp;&amp;</span> want<span class="token punctuation">.</span>parameters<span class="token punctuation">.</span>instanceKey <span class="token operator">===</span> ‘test’<span class="token punctuation">)</span><span class="token punctuation">{<!-- --></span>
				<span class="token keyword">return</span> <span class="token string">'test_instance_'</span>  <span class="token operator">+</span> <span class="token keyword">this</span><span class="token punctuation">.</span>instanceIndex<span class="token operator">++</span><span class="token punctuation">;</span>
			<span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{<!-- --></span>
				<span class="token keyword">return</span><span class="token string">'test_instance'</span><span class="token punctuation">;</span> 
			<span class="token punctuation">}</span>
		<span class="token punctuation">}</span>
		<span class="token keyword">return</span> <span class="token string">'MyAbilitystage'</span><span class="token punctuation">;</span>
	<span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.341104;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:2,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p><strong>依次调用如下方法4次启动 UIAbi1ityA，value分别是"test""test”“testA”“testA”，则当前运行期UIAbility实例有几个。</strong></p> 
<pre data-index="3" class="set-code-hide prettyprint"><code class="prism language-javascript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token keyword">function</span> <span class="token function">testSpecified</span><span class="token punctuation">(</span><span class="token parameter">context<span class="token punctuation">,</span>value</span><span class="token punctuation">)</span><span class="token punctuation">{<!-- --></span>
	<span class="token keyword">let</span> <span class="token literal-property property">want</span><span class="token operator">:</span> Want <span class="token operator">=</span><span class="token punctuation">{<!-- --></span>
		<span class="token literal-property property">deviceId</span><span class="token operator">:</span>"<span class="token punctuation">,</span>
		<span class="token literal-property property">bundleName</span><span class="token operator">:</span><span class="token string">'com.samples.stagemodelabilitydevelop'</span><span class="token punctuation">,</span>
		<span class="token literal-property property">abilityName</span><span class="token operator">:</span> <span class="token string">'UIAbilityA'</span><span class="token punctuation">,</span>
		<span class="token literal-property property">moduleName</span><span class="token operator">:</span><span class="token string">'entry'</span><span class="token punctuation">,</span>
		<span class="token literal-property property">parameters</span><span class="token operator">:</span><span class="token punctuation">{<!-- --></span>
			<span class="token literal-property property">instanceKey</span><span class="token operator">:</span> value
		<span class="token punctuation">}</span>
	<span class="token punctuation">}</span><span class="token punctuation">;</span>
	context<span class="token punctuation">.</span><span class="token function">startAbility</span><span class="token punctuation">(</span>want<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">=&gt;</span><span class="token punctuation">{<!-- --></span>
		hilog<span class="token punctuation">.</span><span class="token function">info</span><span class="token punctuation">(</span><span class="token constant">DOMAIN</span> <span class="token constant">NUMBER</span><span class="token punctuation">,</span> <span class="token constant">TAG</span><span class="token punctuation">,</span> <span class="token string">'Succeeded in starting UIAbilityA.'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
	<span class="token punctuation">}</span><span class="token punctuation">)</span>
	<span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter"><span class="token literal-property property">err</span><span class="token operator">:</span>BusinessError</span><span class="token punctuation">)</span><span class="token operator">=&gt;</span><span class="token punctuation">{<!-- --></span>
		hilog<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span><span class="token constant">DOMAIN_NUMBER</span><span class="token punctuation">,</span> <span class="token constant">TAG</span><span class="token punctuation">,</span> "Failed to start UIAbilityA<span class="token punctuation">.</span> code is $<span class="token punctuation">{<!-- --></span>err<span class="token punctuation">.</span>code<span class="token punctuation">}</span><span class="token punctuation">)</span>
	<span class="token punctuation">}</span><span class="token punctuation">)</span>

<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><div class="hide-preCode-box"><span class="hide-preCode-bt" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7365&quot;}"><img class="look-more-preCode contentImg-no-view" src="https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png" alt="" title=""></span></div><ul class="pre-numbering" style="opacity: 0.341104;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:3,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<blockquote> 
 <p>答案：<code>3</code><br> 分析：由于UIAbilityA的启动模式配置为指定实例启动模式，在UIAbilityA启动之前，会先进入其对应的MyAbilityStage的​​onAcceptWant()​​​生命周期回调中，解析传入的want参数，获取"instanceKey"自定义参数。根据业务需要通过MyAbilityStage的​​onAcceptWant()​​​生命周期回调返回一个字符串Key标识。​​如果返回的Key对应一个已启动的UIAbility​​，则会将之前的UIAbility拉回前台并获焦，而不创建新的实例，否则创建新的实例并启动。<br> 本题’test’返回key为’test_instance_1’<br> ‘test’返回key为’test_instance_2’<br> ‘testA’返回key为’test_instance’<br> ‘testA’返回key为’test_instance’ 三个不同key值对应三个实例</p> 
</blockquote> 
<h5><a id="15_132"></a>15、应用程序开发<a href="https://so.csdn.net/so/search?q=%E8%B0%83%E8%AF%95%E8%BF%87%E7%A8%8B&amp;spm=1001.2101.3001.7020" target="_blank" class="hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;dest&quot;:&quot;https://so.csdn.net/so/search?q=%E8%B0%83%E8%AF%95%E8%BF%87%E7%A8%8B&amp;spm=1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;调试过程\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;dest&quot;:&quot;https://so.csdn.net/so/search?q=%E8%B0%83%E8%AF%95%E8%BF%87%E7%A8%8B&amp;spm=1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;调试过程\&quot;}&quot;}" data-tit="调试过程" data-pretit="调试过程">调试过程</a>中，经常需要安装新应用进行调测，下面安装应用操作错误的是。</h5> 
<p>A. hdc install -p ohosapp.hap<br> B. bm install -p ohosapp.hap<br> C. bm install -p ohosapp.hap -r<br> D. bm install -p /data/app/</p> 
<blockquote> 
 <p>答案：<code>hdc install -p ohosapp.hap</code><br> 分析：bm是用来方便开发者调试的一个工具。bm工具被hdc工具封装，进入hdc shell命令后，就可以使用bm工具。 bm install -p<br> hdc（HarmonyOS Device Connector）是HarmonyOS为开发人员提供的用于调试的<span class="words-blog hl-git-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.10283&quot;,&quot;extra&quot;:&quot;{\&quot;words\&quot;:\&quot;命令行工具\&quot;}&quot;}" data-tit="命令行工具" data-pretit="命令行工具">命令行工具</span>，通过该工具可以在windows/linux/mac系统上与 真实设备或者模拟器进行交互。<br> hdc shell bm install -p package 通过bm安装<br> hdc app install [-r/-d/-g] package 安装指定的应用package</p> 
</blockquote> 
<h5><a id="16_DevEco_studio_DevEco_studio_143"></a>16、使用 DevEco studio进行复杂的跨设备功能开发与调试工作，期间频繁依赖本地模拟器来模拟多样化的设备环境。在这样的背景下，以下关于 DevEco studio本地模拟器所支持的规格与功能，哪一项描述是准确的？</h5> 
<p>A.本地模拟器和真机的能力没有任何差异，真机上可以支持的能力在模拟器上都可以<br> B.本地模拟器当前不支持查看HiLog以及FaultLog<br> C.本地模拟器上运行的应用无需进行签名，简化了调试过程。<br> D.本地模拟器当前不支持<span class="edu-hl hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;单元测试\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;单元测试\&quot;}&quot;}" data-tit="单元测试" data-pretit="单元测试">单元测试</span>框架和U测试框架的运行</p> 
<blockquote> 
 <p>答案：<code>本地模拟器上运行的应用无需进行签名，简化了调试过程</code><br> 分析：</p> 
</blockquote> 
<h5><a id="17PageOnenavigationPageOnetoPageTwoPageTwotoPageOne_151"></a>17、已知下列代码PageOne页面为navigation中的某一子页面，依次点击PageOne页面中toPageTwo按钮，PageTwo页面中toPageOne按钮，此时获取当前页面的路由栈数量为多少。</h5> 
<blockquote> 
 <p>答案：<code>3</code><br> 分析：栈由下到上，PageOne-&gt;PageTwo-&gt;PageOne</p> 
</blockquote> 
<h5><a id="18_PageOne_navigation_PageOnetoPageTwoPageTwo_toPageOne_getnameNavDestination_155"></a>18、已知下列代码 PageOne页面为 navigation中的某一子页面，依次点击 PageOne页面中toPageTwo按钮，PageTwo页面中 toPageOne按钮，此时点击 get按钮获取全部名为name的NavDestination页面的位置索引为。</h5> 
<blockquote> 
 <p>答案：<code>[0,2]</code><br> 分析：</p> 
</blockquote> 
<h5><a id="20AppABCDModuleAModuleBModuleCModuleDModuleAModuleBModuleCModuleBModuleCModuleDModuleCModuleAModuleDModuleBModuleC_159"></a>20、某App有A、B、C、D四个团队分别负责ModuleA、ModuleB、ModuleC和ModuleD四个业务模块，随着业务的发展，ModuleA需要跳转到ModuleB、ModuleC的页面，ModuleB需要跳转到ModuleC、ModuleD的界面，ModuleC需要跳转到ModuleA的界面，ModuleD需要跳转到ModuleB和ModuleC的界面。由于复杂的依赖关系，导致一旦有变化就需要知会各个团队，所以该团队的架构师想要解耦各个业务模块，以下哪些做法是不推荐的（）</h5> 
<blockquote> 
 <p>答案：<code>采用静态import方式引入对应跳转的页面。 </code><br> 分析：静态引入需要频繁更新</p> 
</blockquote> 
<h5><a id="21_163"></a>21、以下对系统兼容性的理解正确的是。</h5> 
<blockquote> 
 <p>答案：<code>已发布的系统能力有可能会发生非兼容性变更，比如新增特性或修改问题导致的行为不兼容，这种情况下应用需要关注changelog并进行适配。</code><br> 分析：</p> 
</blockquote> 
<h5><a id="22_167"></a>22、下面交付&amp;<span class="edu-hl hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;持续部署\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;持续部署\&quot;}&quot;}" data-tit="持续部署" data-pretit="持续部署">持续部署</span>描述哪个是正确的:</h5> 
<blockquote> 
 <p>答案：<code>持续交付(CD,Continuous Delivery):指的是，频繁的将软件的新版本，交付给质量团队或者用户，以供评审。如果评审通过，代码就进入生产阶段。</code><br> 分析：</p> 
</blockquote> 
<h5><a id="23_171"></a>23、应用开发中使用的各类资源文件，需要放入特定子目录中存储管理，以下关于资源说法错误的是。</h5> 
<blockquote> 
 <p>答案：<code>rawfile目录，支持创建多层子目录，子目录名称可以自定义，文件夹内可以自由放置各类资源文件。目录中的资源文件会被编译成二进制文件，并赋予资源</code><br> 分析：在Harmony OS开发中，存放资源文件的rawfile目录默认只支持一层目录结构。<br> 开发者经常会涉及到文件的读写操作。其中，rawfile是一种常见的文件类型，可以用于存储一些静态的数据，例如：配置文件、模板文件等。</p> 
</blockquote> 
<h5><a id="24_176"></a>24、下面的配置一共存在有几处错误。</h5> 
<pre data-index="4" class="set-code-hide prettyprint"><code class="prism language-javascript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	module.json5配置文件:</span>
<span class="token punctuation">{<!-- --></span>
	<span class="token string-property property">"module"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
		<span class="token string-property property">"name"</span><span class="token operator">:</span> <span class="token string">"entry"</span><span class="token punctuation">,</span>
		<span class="token comment">// ...</span>
		<span class="token string-property property">"abilities"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
			<span class="token punctuation">{<!-- --></span>
				<span class="token string-property property">"name"</span><span class="token operator">:</span> <span class="token string">"EntryAbility"</span><span class="token punctuation">,</span>
				<span class="token string-property property">"srcEntry"</span><span class="token operator">:</span> <span class="token string">"./ets/entryability/EntryAbility.ets"</span><span class="token punctuation">,</span>
				<span class="token comment">// ...</span>
				<span class="token string-property property">"skills"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
					<span class="token punctuation">{<!-- --></span>
						<span class="token string-property property">"entities"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
							<span class="token string">"entity.system.home"</span>
						<span class="token punctuation">]</span><span class="token punctuation">,</span>
						<span class="token string-property property">"actions"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
							<span class="token string">"ohos.want.action.home"</span>
						<span class="token punctuation">]</span>
					<span class="token punctuation">}</span>
				<span class="token punctuation">]</span><span class="token punctuation">,</span>
				<span class="token string-property property">"metadata"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
					<span class="token punctuation">{<!-- --></span>
						<span class="token string-property property">"name"</span><span class="token operator">:</span> <span class="token string">"ohos.entry.shortcuts"</span><span class="token punctuation">,</span>
						<span class="token string-property property">"resource"</span><span class="token operator">:</span> <span class="token string">"$profile:shortcuts_config"</span>
					<span class="token punctuation">}</span>
				<span class="token punctuation">]</span>
			<span class="token punctuation">}</span>
		<span class="token punctuation">]</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><div class="hide-preCode-box"><span class="hide-preCode-bt" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7365&quot;}"><img class="look-more-preCode contentImg-no-view" src="https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png" alt="" title=""></span></div><ul class="pre-numbering" style="opacity: 0.341104;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li><li style="color: rgb(153, 153, 153);">24</li><li style="color: rgb(153, 153, 153);">25</li><li style="color: rgb(153, 153, 153);">26</li><li style="color: rgb(153, 153, 153);">27</li><li style="color: rgb(153, 153, 153);">28</li><li style="color: rgb(153, 153, 153);">29</li><li style="color: rgb(153, 153, 153);">30</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:4,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="5" class="set-code-hide prettyprint"><code class="prism language-javascript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	在/resources/base/profile/目录下配置shortcuts_config.json配置文件:</span>
<span class="token punctuation">{<!-- --></span>
	<span class="token string-property property">"shortcuts"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
		<span class="token punctuation">{<!-- --></span>
			<span class="token string-property property">"shortcutId"</span><span class="token operator">:</span> <span class="token string">"id_test1"</span><span class="token punctuation">,</span>
            <span class="token comment">// 【shortcutLabel】字符串不符合匹配规则</span>
			<span class="token string-property property">"label"</span><span class="token operator">:</span> <span class="token string">"shortcutLabel"</span><span class="token punctuation">,</span>
			<span class="token string-property property">"icon"</span><span class="token operator">:</span> <span class="token string">"$media:shortcutIcon"</span><span class="token punctuation">,</span>
			<span class="token string-property property">"wants"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
				<span class="token punctuation">{<!-- --></span>
					<span class="token string-property property">"bundleName"</span><span class="token operator">:</span> <span class="token string">"com.ohos.hello"</span><span class="token punctuation">,</span>
					<span class="token string-property property">"moduleName"</span><span class="token operator">:</span> <span class="token string">"entry"</span><span class="token punctuation">,</span>
					<span class="token string-property property">"abilityName"</span><span class="token operator">:</span> <span class="token string">"EntryAbility"</span>
				<span class="token punctuation">}</span>
			<span class="token punctuation">]</span>
		<span class="token punctuation">}</span>
	<span class="token punctuation">]</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><div class="hide-preCode-box"><span class="hide-preCode-bt" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7365&quot;}"><img class="look-more-preCode contentImg-no-view" src="https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png" alt="" title=""></span></div><ul class="pre-numbering" style="opacity: 0.341104;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:5,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<blockquote> 
 <p>答案：<code>1</code><br> 分析：shortcutLabel 字符串不符合匹配规则 “label”: "$string:shortcutLabel ",</p> 
</blockquote>
                